<script setup>
document.body.style.overflow = 'hidden';
window['send'] = (link) => {
  var i = document.createElement('iframe');
  i.style.display = 'none';
  i.onload = function () {
    i.parentNode?.removeChild(i);
  };
  i.src = link;
  document.body.appendChild(i);
  setTimeout(() => {
    i.src = 'about:blank';
    i.parentNode?.removeChild(i);
  }, 100);
}
window['album'] = (type, data) => {
  window['send'](`terms://album?type=${type}&data=${data}`)
}
window['photo'] = (type) => {
  window['send'](`terms://photo?type=${type}`)
}
</script>
<template>
  <router-view></router-view>
</template>

<style scoped>
</style>
